/**
 * Copyright © 2016-2025 The Thingsboard Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import 'constants';

:host {
  .links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 4px;
    grid-row-gap: 0.5em;

    @media screen and (min-width: 2000px) {
      grid-template-columns: repeat(1, 1fr);
    }
  }

  .link {
    @media #{$mat-lt-lg} {
      width: 100% !important;
    }

    flex: 1 0 45%;
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    color: #494949;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 1px;
    line-height: 21px;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
    &:hover {
      box-shadow: 0 4px 10px rgba(23, 33, 90, 0.08);
      border: 1px solid rgba(0,0,0,0.1);
    }

    .icon-container {
      display: flex;
      width: 30px;
      height: 30px;
      border-radius: 6px;
      align-items: center;
      justify-content: center;

      @media screen and (min-width: 1279px) and (max-width: 1600px) {
        display: none;
      }
    }

    .link-content {
      display: flex;
      align-items:center;

      span {
        font-size: 0.9em;
        border: 1px solid transparent;
        padding-left: 4px;
        white-space: nowrap;

        /*@media #{$mat-lg} {
          span {
            font-size: 11px;
            white-space: nowrap;
          }
          .icon-container {
            width: 24px;
            height: 24px;
          }
        }*/
      }
    }
  }
}
